<?php # Prescription_Record.php

require_once 'DBObject.php';

class Prescription_Record extends DBObject {
	public $tablename = "prescription_records";
	
	public $id;
	public $patient_id;
	public $medication_id;
	public $start_date;
	public $end_date;
	public $dosage;
	
	
	public function get() {
		return array(
					'id' => $this->id,
					'patient_id' => $this->patient_id,
					'medication_id' => $this->medication_id,
					'start_date' => $this->start_date,
					'end_date' => $this->end_date,
					'dosage' => $this->dosage
				);
	}
	
	public function validate() {
		return parent::validateObject($this->tablename);
	}
}
